package com.nc.delivery_project.client.request;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.CurrencyService;
import com.nc.delivery_project.shared.proxy.CurrencyProxy;
import com.nc.delivery_project.shared.servicelocator.CurrencyServiceLocator;

import java.util.List;

/**
 * Created by DRAGON on 15.02.2015.
 */
@Service(value = CurrencyService.class, locator = CurrencyServiceLocator.class)
public interface CurrencyRequest extends RequestContext {
    Request<Integer> create(CurrencyProxy currency);

    Request<List<CurrencyProxy>> read();

    Request<CurrencyProxy> read(int currencyId);

    Request<Void> update(CurrencyProxy currency);

    Request<Void> delete(int currencyId);
}
